namespace ZR.Model.Models.ProductionControl
{
    /// <summary>
    /// 测试结果
    /// </summary>
    [SugarTable("test_result")]
    public class TestResult : BaseEntity
    {
        /// <summary>
        /// 序号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public long Id { get; set; }

        /// <summary>
        /// 产线代号
        /// </summary>
        [SugarColumn(ColumnName = "line_code")]
        public string LineCode { get; set; }

        /// <summary>
        /// 工位
        /// </summary>
        [SugarColumn(ColumnName = "station_code")]
        public string StationCode { get; set; }

        /// <summary>
        /// 产品ID（唯一码）
        /// </summary>
        [SugarColumn(ColumnName = "product_id")]
        public string ProductId { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        [SugarColumn(ColumnName = "order_code")]
        public string OrderCode { get; set; }

        /// <summary>
        /// 产品类型
        /// </summary>
        [SugarColumn(ColumnName = "product_type")]
        public string ProductType { get; set; }

        /// <summary>
        /// 工艺名称
        /// </summary>
        [SugarColumn(ColumnName = "process_name")]
        public string ProcessName { get; set; }

        /// <summary>
        /// 工艺结果
        /// </summary>
        [SugarColumn(ColumnName = "process_value")]
        public string ProcessValue { get; set; }

        /// <summary>
        /// 数据单位
        /// </summary>
        [SugarColumn(ColumnName = "unit_name")]
        public string UnitName { get; set; }

        /// <summary>
        /// 上限值
        /// </summary>
        [SugarColumn(ColumnName = "up_limit_value")]
        public decimal UpLimitValue { get; set; }

        /// <summary>
        /// 下限值
        /// </summary>
        [SugarColumn(ColumnName = "down_limit_value")]
        public decimal DownLimitValue { get; set; }

        /// <summary>
        /// 标准值
        /// </summary>
        [SugarColumn(ColumnName = "standard_value")]
        public decimal StandardValue { get; set; }

        /// <summary>
        /// 采集结果
        /// </summary>
        [SugarColumn(ColumnName = "work_result")]
        public string WorkResult { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "creation_time")]
        public DateTime? CreationTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "creator_name")]
        public string CreatorName { get; set; }

        /// <summary>
        /// 工艺类型(查询区分)
        /// </summary>
        [SugarColumn(ColumnName = "process_type")]
        public int? ProcessType { get; set; }

        /// <summary>
        /// 上传标识
        /// </summary>
        [SugarColumn(ColumnName = "mes_pushed")]
        public int? MesPushed { get; set; }
    }
}